package com.wlr.blog.controller;


import com.wlr.blog.service.IUserInfoService;
import com.wlr.blog.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wlr
 * @since 2021-07-19
 */
@RestController
@RequestMapping("/blog")
public class UserInfoController {
    @Autowired
    IUserInfoService userInfoService;
    @GetMapping
    public Result index(){
        return Result.success(userInfoService.list());
    }
}
